var http = require ("http")
var date=[];

var server=http.creatServer(function(req.res){
       console.log(req.url);
       var str=req.url.split("?");
       str=str[1];
       var arr=str.split("&")
       var one={};
       arr.forEach(function(o){
              var s=o.split("=");
              one[s[0]]=s[1];
})
data.push(one);
console.log(data);

})

server.listen(3000);
